package com.xbk.platform;

import java.sql.Connection;
import java.sql.DriverManager;

public class ConnectionHelper {
	
	public static Connection getConnection(String url,String driver,String user,String passwd){
		Connection conn = null;
		try {
			Class.forName(driver);
			conn = DriverManager.getConnection(url, user, passwd);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return conn;
	}

}
